﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RedeSocial.DataAccess;

namespace RedeSocial.Web.UserControls
{
	public partial class Mural : BaseUserControl
	{
		#region properties...
		protected string CountryName
		{
			get
			{
			using (RedeSocialEntities dataContext = new RedeSocialEntities())
			{
			  return dataContext.CountryNames.Where(cn => cn.Language.Id == Language.Id && cn.Country.Id == User.Country.Id).Select(cn => cn.Name).FirstOrDefault();
				};
			}
		}
		protected string Birthday
		{
			get
			{
				return User.Birthday.HasValue ? User.Birthday.Value.ToString("d") : string.Empty;
			}
		}
		
		#endregion
		#region overrides...
		protected override void CreateViewModel()
		{

		}
		protected override void BindViewModel()
		{

		}
		protected override void BindLabels()
		{
			//lblError.Text = ResourceManager.GetResource(Constants.LOGINVIEW_INVALIDUSERMESSAGE, LoginViewModel.DefaultLanguage.Id);
		}
		#endregion
		#region properties...
		#endregion
		#region event handles...
		protected void Page_Load(object sender, EventArgs e)
		{
			Response.Cache.SetCacheability(HttpCacheability.NoCache);
			if (!IsPostBack)
			{
			}
			
		
		}
		#endregion
	}
}